/*
 * Copyright 2009 Google Inc.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

package com.google.android.apps.mytracks.content;

import static com.google.android.apps.mytracks.content.ContentTypeIds.LONG_TYPE_ID;
import static com.google.android.apps.mytracks.content.ContentTypeIds.STRING_TYPE_ID;

import android.net.Uri;
import android.provider.BaseColumns;

/**
 * Constants for investigados table.
 * 
 * @author Leif Hendrik Wilden
 */
public interface InvestigadosColumns extends BaseColumns {

  public static final String TABLE_NAME = "investigados";
  public static final String DEFAULT_SORT_ORDER = "nombre";
  public static final Uri CONTENT_URI = Uri.parse(
      "content://com.doverty.android.maps.mytracks/investigados");

  // Columns
  public static final String NOMBRE = "nombre";
  public static final String DIRECCION = "direccion";
  public static final String EMAIL = "email";
  public static final String CASOID = "casoid";

  
  public static final String CREATE_TABLE = "CREATE TABLE " + TABLE_NAME + " (" 
      + _ID + " INTEGER PRIMARY KEY AUTOINCREMENT, "
      + NOMBRE + " STRING, "
      + DIRECCION + " STRING, "
      + EMAIL + " STRING, "
      + CASOID + " INTEGER DEFAULT 0 " // CASO id

      + ");";
  
  public static final String[] COLUMNS = {
      _ID,
      NOMBRE,
      DIRECCION,
      EMAIL,
      CASOID
    };
    
  public static final byte[] COLUMN_TYPES = {
      LONG_TYPE_ID, // id
      STRING_TYPE_ID, // nombre
      STRING_TYPE_ID, //direccion
      STRING_TYPE_ID,  //email
      LONG_TYPE_ID // casoid
  }; 
}
